
inline std::size_t CEntity::getId() {return _id;}
inline std::size_t CEntity::getNPoint() {return point.size();}
inline std::size_t CEntity::getNDim() {return _nDim;}
inline std::size_t CEntity::getNFace() {return face.size();}
inline double CEntity::getCG(size_t aDim) {return CG[aDim];}
inline double* CEntity::getCG() {return CG;}
inline void CEntity::setCG(double* aCG)
{
    for(std::size_t iDim = 0; iDim < _nDim; iDim++) CG[iDim] = aCG[iDim];
}

inline std::size_t CEntity::getPoint(std::size_t aPoint)
{
    if(aPoint >= 0 && aPoint < point.size())
        return point[aPoint];
    else
        throw std::runtime_error("In the function CEntity::getPoint(std::size_t aPoint): aPoint is wrong!");
}


inline double CEntity::getType() {return type;}
inline void CEntity::setType(std::size_t aType) {type = aType;}

inline std::size_t* CEntity::getFacePoint(std::size_t aFace) {return NULL;}
inline std::size_t CEntity::getNFacePoint() {return _nFacePoint;}

inline std::size_t  CEntity::getParent(std::size_t aParent) 
{
    if(aParent >=0 && aParent < parent.size())
        return parent[aParent];
    else
        throw std::runtime_error("In the function CEntity::getParent(std::size_t aParent): aParent is wrong!");
}
inline std::size_t CEntity::getNParent() {return parent.size();}

inline double CEntity::getVolume() {return volume;}
inline void CEntity::setVolume(double value) {volume = value;};

inline void CEntity::setBoundType(long int val) {boundType = val;};
inline long int CEntity::getBoundType() {return boundType;};
